(defproject clj-gallery "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [compojure "1.5.1"]
                 [hiccup "1.0.5"]
                 [ring-server "0.4.0"]
                 [com.taoensso/timbre "4.7.4"]
                 [environ "1.1.0"]
                 [selmer "1.10.0"]
                 [korma "0.4.3"]

                 [org.xerial/sqlite-jdbc "3.15.1"]
                 [org.clojure/java.jdbc "0.6.1"]
                 [lib-noir "0.9.9"]
                 [buddy/buddy-auth "1.2.0"]
                 [metosin/ring-http-response "0.8.0"]

                 [org.clojure/tools.reader "0.10.0"]
                 [org.clojure/clojurescript "1.9.293"]
                 [domina "1.0.3"]
                 [cljs-ajax "0.5.8"]]
  :plugins [[lein-ring "0.9.7"]
            [lein-ancient "0.6.10"]
            [lein-environ "1.1.0"]
            [lein-cljsbuild "1.1.4"]]
  :ring {:handler clj-gallery.handler/app
         :init    clj-gallery.handler/init
         :destroy clj-gallery.handler/destroy}
  :cljsbuild
  {:builds
   {:dev  {:source-paths ["src-cljs"]
           :compiler     {:pretty-print  true
                          :optimizations :whitespace
                          :output-to     "resources/public/js/gallery-cljs.js"}}
    :prod {:source-paths ["src-cljs"]
           :compiler     {:optimizations :advanced
                          :output-to     "resources/public/js/gallery-cljs.js"}}}}
  :profiles
  {:uberjar    {:aot :all}
   :production {:ring {:open-browser? false
                       :stacktraces?  false
                       :auto-reload?  false}
                :env  {:port           3000
                       :db-url         "./gallery.sqlite"
                       :db-user        ""
                       :db-pass        ""
                       :galleries-path "galleries"}}
   :dev        {:dependencies [[ring-mock "0.1.5"]
                               [ring/ring-devel "1.5.0"]]
                :env          {:port           3000
                               :db-url         "./gallery.sqlite"
                               :db-user        ""
                               :db-pass        ""
                               :galleries-path "galleries"}}})
